package com.atguigu.jinx.utils.transfer;

import com.atguigu.jinx.entity.dto.JobTask;
import com.atguigu.jinx.entity.dto.User;
import com.atguigu.jinx.entity.vo.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Author:VEGA_KUANGQI
 * <p>
 * 2025/8/9
 */
@Mapper
public interface CommonMapper {


    CommonMapper INSTANCE = Mappers.getMapper(CommonMapper.class);


    User UserCreateDTO2User(UserVO userVO);

    JobVO jobTaskToVO(JobTask jobTask);

    List<JobVO> jobTaskListToVO(List<JobTask> jobTask);

    JobDetailVO jobDetailTOVO(JobTask jobTask);

    JobDetailVipVO jobDetailTOVIPVO(JobTask jobTask);

    UserDisplayInfoVO userToDisplayInfo(User user);
}
